package cn.cxy.countdowntimer

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import cn.cxy.countdown.OnFinishCallback
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        countDownTv.setCallback(object : OnFinishCallback {
            override fun onFinished() {
                Toast.makeText(this@MainActivity, "dddd", Toast.LENGTH_LONG).show()
            }
        })
    }
}